package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * @author: liukunlong
 * @date: 2021-03-05 10:31
 */
public class GetUserBehaviorDataResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * behavior_data : [{"stat_time":1536508800,"chat_cnt":100,"message_cnt":80,"reply_percentage":60.25,"avg_reply_time":1,"negative_feedback_cnt":0,"new_apply_cnt":6,"new_contact_cnt":5},{"stat_time":1536595200,"chat_cnt":20,"message_cnt":40,"reply_percentage":100,"avg_reply_time":1,"negative_feedback_cnt":0,"new_apply_cnt":6,"new_contact_cnt":5}]
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * behaviorData
     */
    @JSONField(name = "behavior_data")
    private List<BehaviorDataDTO> behaviorData;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public List<BehaviorDataDTO> getBehaviorData() {
        return behaviorData;
    }

    public void setBehaviorData(List<BehaviorDataDTO> behaviorData) {
        this.behaviorData = behaviorData;
    }

    public static class BehaviorDataDTO {
        /**
         * statTime
         */ /**
         * stat_time : 1536508800
         * chat_cnt : 100
         * message_cnt : 80
         * reply_percentage : 60.25
         * avg_reply_time : 1
         * negative_feedback_cnt : 0
         * new_apply_cnt : 6
         * new_contact_cnt : 5
         */

        @JSONField(name = "stat_time")
        private Integer statTime;
        /**
         * chatCnt
         */
        @JSONField(name = "chat_cnt")
        private Integer chatCnt;
        /**
         * messageCnt
         */
        @JSONField(name = "message_cnt")
        private Integer messageCnt;
        /**
         * replyPercentage
         */
        @JSONField(name = "reply_percentage")
        private Double replyPercentage;
        /**
         * avgReplyTime
         */
        @JSONField(name = "avg_reply_time")
        private Integer avgReplyTime;
        /**
         * negativeFeedbackCnt
         */
        @JSONField(name = "negative_feedback_cnt")
        private Integer negativeFeedbackCnt;
        /**
         * newApplyCnt
         */
        @JSONField(name = "new_apply_cnt")
        private Integer newApplyCnt;
        /**
         * newContactCnt
         */
        @JSONField(name = "new_contact_cnt")
        private Integer newContactCnt;

        public Integer getStatTime() {
            return statTime;
        }

        public void setStatTime(Integer statTime) {
            this.statTime = statTime;
        }

        public Integer getChatCnt() {
            return chatCnt;
        }

        public void setChatCnt(Integer chatCnt) {
            this.chatCnt = chatCnt;
        }

        public Integer getMessageCnt() {
            return messageCnt;
        }

        public void setMessageCnt(Integer messageCnt) {
            this.messageCnt = messageCnt;
        }

        public Double getReplyPercentage() {
            return replyPercentage;
        }

        public void setReplyPercentage(Double replyPercentage) {
            this.replyPercentage = replyPercentage;
        }

        public Integer getAvgReplyTime() {
            return avgReplyTime;
        }

        public void setAvgReplyTime(Integer avgReplyTime) {
            this.avgReplyTime = avgReplyTime;
        }

        public Integer getNegativeFeedbackCnt() {
            return negativeFeedbackCnt;
        }

        public void setNegativeFeedbackCnt(Integer negativeFeedbackCnt) {
            this.negativeFeedbackCnt = negativeFeedbackCnt;
        }

        public Integer getNewApplyCnt() {
            return newApplyCnt;
        }

        public void setNewApplyCnt(Integer newApplyCnt) {
            this.newApplyCnt = newApplyCnt;
        }

        public Integer getNewContactCnt() {
            return newContactCnt;
        }

        public void setNewContactCnt(Integer newContactCnt) {
            this.newContactCnt = newContactCnt;
        }
    }
}
